/**
 * Created by Superlee on 2016/7/5.
 */
var login={};

login.login=function(req,res){
    console.log(req.body);
    var account=req.body.account;
    if(account.substring(0,1)=='a'){
        res.send({"role":"admin"});
    }
    else{
        res.send({"role":"boss"});
    }

};

login.register=function(req,res){
    
};

module.exports=login;

